﻿namespace ManoMachine.Emulator.Emulator
{
    using System.Collections.ObjectModel;
    using System.Linq;
    using ManoMachine.Emulator.CPU;

    public class InstructionCycle
    {
        public InstructionCycle()
        {
            this.TsHistory = new ObservableCollection<Cpu>();
        }

        private string _instructionMachineCode;

        public string InstructionMachineCode
        {
            get { return _instructionMachineCode; }
            set { _instructionMachineCode = value; }
        }

        public ObservableCollection<Cpu> TsHistory { get; private set; }

        public Cpu LastCpu { get { return this.TsHistory.LastOrDefault(); } }
    }
}